
class Empoy
{
    public String name;
    public int salary;
    public int date;

    public Empoy(String name,int salary,int date)
    {
        this.name=name;
        this.salary=salary;
        this.date=date;
    }
    public String getName()
    {
        return this.name;
    }
    public int getSalary()
    {
        return this.salary;
    }
    public int getDate()
    {
        return this.date;
    }




}







public class demo9
{
    public static void main(String[] args) {

    }
    public static void main2(String[] args) {
        Empoy[]arr=new Empoy[3];
        arr[0]=new Empoy("wang",2000,100);
        arr[1]=new Empoy("long",1000,50);
        arr[2]=new Empoy("xiang",5000,60);
        for (Empoy x: arr) {
            System.out.println("姓名"+x.getName()+"薪酬是"+x.getSalary() +"干的天数是"+x.getDate());

        }






    }
    public static void main1(String[] args) {
        int[][]arr={{1,2,3},{4,5,6},{7,8,9}};
        for (int[]x: arr) {
            for (int a:x) {
                System.out.print(a+" ");

            }

        }
    }




}
